using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace WcfService1.DTO
{
    [DataContract]
    public class PurchaseReturnDetailDTO : INotifyPropertyChanged
    {
        private String _Description;
        private Decimal _Discount;
        private InventoryDTO _Inventory;
        private int _No;
        private string _NoPR;
        private Decimal _Price;
        private Int64 _PurchaseReturnDetailId;
        private Decimal _Qty;
        private decimal _Tinggi;
        private decimal _Panjang;
        private decimal _Lebar;


        [DataMember]
        public Int64 PurchaseReturnDetailId
        {
            get { return _PurchaseReturnDetailId; }
            set
            {
                _PurchaseReturnDetailId = value;
                RaisePropertyChanged("PurchaseReturnDetailId");
            }
        }


        [DataMember]
        public InventoryDTO Inventory
        {
            get { return _Inventory; }
            set
            {
                _Inventory = value;
                RaisePropertyChanged("Inventory");
            }
        }

        [DataMember]
        public Decimal Panjang
        {
            get { return _Panjang; }
            set
            {
                _Panjang = value;
                RaisePropertyChanged("Panjang");
            }
        }

        [DataMember]
        public Decimal Lebar
        {
            get { return _Lebar; }
            set
            {
                _Lebar = value;
                RaisePropertyChanged("Lebar");
            }
        }


        [DataMember]
        public Decimal Tinggi
        {
            get { return _Tinggi; }
            set
            {
                _Tinggi = value;
                RaisePropertyChanged("Tinggi");
            }
        }

        [DataMember]
        public Decimal Qty
        {
            get { return _Qty; }
            set
            {
                _Qty = value;
                RaisePropertyChanged("Qty");
            }
        }


        [DataMember]
        public Decimal Price
        {
            get { return _Price; }
            set
            {
                _Price = value;
                RaisePropertyChanged("Price");
            }
        }


        [DataMember]
        public Decimal Discount
        {
            get { return _Discount; }
            set
            {
                _Discount = value;
                RaisePropertyChanged("Discount");
            }
        }


        [DataMember]
        public String Description
        {
            get { return _Description; }
            set
            {
                _Description = value;
                RaisePropertyChanged("Description");
            }
        }

        [DataMember]
        public String NoPR
        {
            get { return _NoPR; }
            set
            {
                _NoPR = value;
                RaisePropertyChanged("NoPR");
            }
        }

       

        public int No
        {
            get { return _No; }
            set
            {
                _No = value;
                RaisePropertyChanged("No");
            }
        }

        public String PRNo { get; set; }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion

        protected void RaisePropertyChanged(string propertyname)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyname));
        }
    }
}